<!--{template /module/admin/view/head}-->
<div id="left_layout">
	<div id="main_content" class="container-fluid {echo in_array($_var['gp_ref'], array('desktop', 'audit', 'recycle')) ? '' : '';}">
		<div class="row-fluid">
			<div class="well widget">
				<div class="widget-header">
					<p class="text">{lang cms.article_view.view.header}</p>
				</div>
				<div class="widget-content">
				<table class="table">
					<thead>
						<tr>
							<th width="120">{lang cms.article_edit.view.title.label}</th>
							<th>{$article[TITLE]}</th>
						</tr>
					</thead>
					<tr>
						<td>{lang cms.article_edit.view.pubdate.label}/{lang cms.article_edit.view.expried.label}</td>
						<td>
							{$article[PUBDATE]} 
							<!--{if $article['EXPRIED']}-->/ {$article[EXPRIED]}<!--{/if}-->
						</td>
					</tr>
					
					<!--{if $article['SUBTITLE1'] || $article['SUBTITLE2'] || $article['SUBTITLE3']}-->
					<tr>
						<td>{lang cms.article_edit.view.subtitle.label}</td>
						<td>{$article[SUBTITLE1]}；{$article[SUBTITLE2]}；{$article[SUBTITLE3]}</td>
					</tr>
					<!--{/if}-->
					
					<!--{if $article['ADDRESS'] && $category['COLUMNS']['ADDRESS']['show']}-->
					<tr>
						<td>
							<!--{if $category['COLUMNS']['ADDRESS']['text']}-->
							{$category[COLUMNS][ADDRESS][text]}
							<!--{else}-->
							{lang cms.article_edit.view.address.label}
							<!--{/if}-->
						</td>
						<td>{$article[ADDRESS]}</td>
					</tr>
					<!--{/if}-->
					
					<!--{if $article['AUTHOR'] && $category['COLUMNS']['AUTHOR']['show']}-->
					<tr>
						<td>
							<!--{if $category['COLUMNS']['AUTHOR']['text']}-->
							{$category[COLUMNS][AUTHOR][text]}
							<!--{else}-->
							{lang cms.article_edit.view.author.label}
							<!--{/if}-->
						</td>
						<td>{$article[AUTHOR]}</td>
					</tr>
					<!--{/if}-->
					
					<!--{if $article['KEYWORDS'] && $category['COLUMNS']['KEYWORDS']['show']}-->
					<tr>
						<td>
							<!--{if $category['COLUMNS']['KEYWORDS']['text']}-->
							{$category[COLUMNS][KEYWORDS][text]}
							<!--{else}-->
							{lang cms.article_edit.view.keywords.label}
							<!--{/if}-->
						</td>
						<td>{$article[KEYWORDS]}</td>
					</tr>
					<!--{/if}-->
					
					<!--{if $article['LINK'] && $category['COLUMNS']['LINK']['show']}-->
					<tr>
						<td>
							<!--{if $category['COLUMNS']['LINK']['text']}-->
							{$category[COLUMNS][LINK][text]}
							<!--{else}-->
							{lang cms.article_edit.view.link.label}
							<!--{/if}-->
						</td>
						<td>{$article[LINK]}</td>
					</tr>
					<!--{/if}-->
					
					<!--{if $article['MODULE'] && $article['MODULE'] != 'empty'}-->
					<tr>
						<td>
							{lang cms.article_edit.view.module.label}
						</td>
						<td>{$module_tips}</td>
					</tr>
					<!--{/if}-->
					
					<tr>
						<td>{lang cms.article_edit.view.category.label}</td>
						<td>{$category[CNAME]}</td>
					</tr>
					
					<!--{if $article['SUMMARY'] && $category['COLUMNS']['SUMMARY']['show']}-->
					<tr>
						<td>
							<!--{if $category['COLUMNS']['SUMMARY']['text']}-->
							{$category[COLUMNS][SUMMARY][text]}
							<!--{else}-->
							{lang cms.article_edit.view.summary.label}
							<!--{/if}-->
						</td>
						<td>{echo nl2br($article[SUMMARY]);}</td>
					</tr>
					<!--{/if}-->
					
					<!--{if $article['CONTENT'] || is_array($article['FILE'])}-->
					<tr>
						<td>
							<!--{if $category['COLUMNS']['CONTENT']['text']}-->
							{$category[COLUMNS][CONTENT][text]}
							<!--{else}-->
							{lang cms.article_edit.view.content.label}
							<!--{/if}-->
						</td>
						<td>
							<!--{if $article['TYPE'] == 2}-->
							<p class="text-info path">
								<strong>
									<!--{if is_array($article['FILE'])}-->
									<a href="{$article[FILE][0]}" target="_blank">{$article[FILE][1]}</a>
									<!--{else}-->
									{lang cms.article_edit.view.content.file.empty}
									<!--{/if}-->
								</strong>
							</p>
							<!--{else}-->
							{$article[CONTENT]}
							<!--{/if}-->
						</td>
					</tr>
					<!--{/if}-->
					
					<tr>
						<td>{lang cms.article_edit.view.iscommend.label}</td>
						<td>{$article[ISCOMMEND]}{lang cms.article_edit.view.iscommend.unit}</td>
					</tr>
					<tr>
						<td>{lang cms.article_edit.view.istop.label}</td>
						<td>
							<!--{if $article['ISTOP']}-->
							{lang cms.article_edit.view.istop.yes.label}
							<!--{else}-->
							{lang cms.article_edit.view.istop.no.label}
							<!--{/if}-->
						</td>
					</tr>
					
					<!--{if $subject}-->
					<tr>
						<td>{lang cms.article_edit.view.subject.label}</td>
						<td>{$subject[TITLE]}</td>
					</tr>
					<!--{/if}-->
				</table>
				
				<!--{if count($article_files) > 0 && $category['FILES']['show']}-->
				<hr />
            	<table class="table" style="width:auto;">
            		<thead>
            			<tr>
	            			<th width="40">{lang admin.validate.swfupload.th.no}</th>
	            			<th width="80">{lang admin.validate.swfupload.th.pic}</th>
	            			<th width="240">{lang admin.validate.swfupload.th.name}</th>
            			</tr>
            		</thead>
            		<tbody>
            		<!--{loop $article_files $key $image}-->
            		<tr>
		            	<td>
			            	{echo $key + 1;}
		            	</td>
		            	<td>
		            		<input type="hidden" name="hdnImagePath[]" value="{$image[4]}" />
		            		<a href="{$image[3]}" target="_blank"><img class="image" style="width:60px;" src="{$image[0]}" border="0" /></a>
		            	</td>
		            	<td>
		            		<span class="imageTitle">{$image[1]}<!--{if $image[5]}--><br/>[{$image[5]}px * {$image[6]}px]<!--{/if}--></span>
		            	</td>
		            </tr>
            		<!--{/loop}-->
            		<tr id="tbl_no_record"{if count($article_files) > 0} style="display:none;"{/if}>
            			<td colspan="3">{lang admin.validate.swfupload.empty}</td>
            		</tr>
		            </tbody>
		        </table>
		        <!--{/if}-->
		        
				<fieldset>
					<button type="button" class="btn" onclick="javascript:history.go(-1);">{lang admin.operation.go.back}</button>
				</fieldset>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
$(function(){
	var dwidth = $('#main_content').width() - 100;
	$('#td_content img').each(function(index, item){
		var self = item;
		var img = new Image();
		img.src = self.src;
		img.onload = function(){
			if(this.width > dwidth) $(self).css('width', '100%');
		}
	});
});
</script>

<!--{template /module/admin/view/foot}-->